<?php
/* @var $this OrderAdminController */
/* @var $model Order */

$this->breadcrumbs=array(
	'Orders'=>array('index'),
	$model->order_id,
);

$this->menu=array(
	array('label'=>'Tạo hoá đơn', 'url'=>array('create')),
	array('label'=>'Sửa', 'url'=>array('update', 'id'=>$model->order_id)),
	//array('label'=>'Xoá', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->order_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Quản trị', 'url'=>array('admin')),
);
?>

<h1>Chi tiết hoá đơn (Mã: <?php echo $model->order_id; ?>)</h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
        array(
            'name'=>'order_id',
            'type'=>'html',
            'value'=>CHtml::link($model->order_id,array('OrderDetailAdmin/View','id'=>$model->order_id)),
        ),
		'order_time',
        array(
            'name'=>'order_amount',
            'value'=>number_format($model->order_amount,0,'',','),
        ),
		'order_delivery_time',
		'customer_id',
	),
)); ?>
